package org.osflash.arp
{
	import flash.net.Responder;
	import org.osflash.arp.AMF0RelayResponder;
	
	// This class exists to provide a simple migration 
	// pattern for Arp projects using AMFPHP (AMF0)
	public class AMF0RelayResponder
	{
		private var _result:Function;
		private var _fault:Function;
		
		public function AMF0RelayResponder ( listenObj:*, result:String, fault:String )
		{
			this.result = listenObj[result];
			this.fault = listenObj[fault];
		}
		
		public function get result ():Function
		{
			return _result;
		}
		
		public function set result ( r:Function ):void
		{
			_result = r;
		}
		
		public function get fault ():Function
		{
			return _fault;
		}
		
		public function set fault ( r:Function ):void
		{
			_fault = r;
		}
	}
}